import type { Result, LoginUser } from "@/config/data/data"
import { post } from "./request"

/**
 * 登录
 * @param data -code 授权码 
 * @returns 用户信息
 */
export const ReqLogin = (data:{code:string}):Promise<Result<LoginUser>> => post("/login",data)